﻿using EWC.HIS.Application.Contracts;
using EWC.HIS.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace EWC.HIS.Application
{
    public class OutptApptRegAppService : BaseAppService, IOutptApptRegAppService
    {
        private readonly IOutptApptRegRepository _outptApptRegRepository;

        public OutptApptRegAppService(IOutptApptRegRepository outptApptRegRepository)
        {
            _outptApptRegRepository = outptApptRegRepository;
        }

        public async Task<List<string>> GetPatientNames()
        {
            return await _outptApptRegRepository.GetPatientNames();
        }

        public async Task<int> InsertAsync(AppointmentRegistration appointment)
        {
            return await _outptApptRegRepository.InsertAsync(appointment);
        }
    }
}
